import request from '@/utils/request'
// 获取图形验证码
export const getPicCode = () => {
  return request.get('/captcha/image')
}
// 获取手机验证码
export const getSMSCode = (picCode, picKey, mobile) => {
  return request.post('/captcha/sendSmsCaptcha', {
    form: {
      captchaCode: picCode, captchaKey: picKey, mobile
    }
  })
}

// 登录
export const codeLogin = (smsCode, mobile) => {
  return request.post('/passport/login', {
    form: {
      isParty: false,
      partyData: {},
      mobile,
      smsCode
    }
  })
}
